package com.lbw.builder;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/10/17 22:45
 */
public abstract class AbstractHouse {

    // 打地基
    public abstract void buildBasic();


    // 砌墙
    public abstract void buildWalls();


    // 盖屋顶
    public abstract void roofed();


    public final void build() {
        buildBasic();
        buildWalls();
        roofed();
    }
}



